package com.yhxd.modular.reference.dao;

import com.yhxd.modular.reference.entity.Directory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DirectoryDao extends JpaRepository<Directory, Long>, JpaSpecificationExecutor<Directory> {

    List<Directory> findByIdIn(List<Long> idList);
    Directory findByDirNameAndDirPath(String name, String path);
    List<Directory> findByIdNotAndDirPathLike(Long id, String path);
    List<Directory> findByPidAndDirName(Long id, String name);
}
